using ASP;
using HoWave.Common;
using System;
using System.Data;
using System.Web.Profile;
using System.Web.UI;
using System.Web.UI.WebControls;
public class UserControls_StandInformation : UserControl
{
	protected Literal InformationCount;
	private Conn conn = new Conn();
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		this.GetMessageCount();
	}
	public void GetMessageCount()
	{
		DataSet dataSet = this.conn.GetDataSet("select UserName from HL_User where UserID=" + int.Parse(base.Request.Cookies["Howave_UserID"].Value));
		string str = dataSet.Tables[0].Rows[0]["UserName"].ToString();
		DataSet dataSet2 = this.conn.GetDataSet("select count(*) as Count from HL_Message where Receiver='" + str + "'");
		this.InformationCount.Text = dataSet2.Tables[0].Rows[0]["Count"].ToString();
	}
}
